Skip to content

feat: expose native extension features to Shen Batteries - #61

Merged
pyrex41 merged 2 commits into
mainfrom
feat/batteries-features
Aug 25, 2026
Merged

feat: expose native extension features to Shen Batteries#61
pyrex41 merged 2 commits into
mainfrom
feat/batteries-features

Conversation

@pyrex41

@pyrex41 pyrex41 commented Aug 25, 2026

Copy link
Copy Markdown
Owner

Summary

Seed the Shen Batteries feature registry after boot from native extension backends so (shen.x.features.current) reflects host capabilities (e.g. shen.x/sha256-host) instead of failing because the registry was unbound.

The community features.initialise path also hooks shen.set-lambda-form-entry, which is not present in the refreshed 41.2 kernel. This port seeds shen.x.features.*features* directly from backend globals (shen.x.*sha256-backend*, shen.x.*zmq-backend*). Ports without a host backend (including SHEN_X_SHA256=pure) advertise no host capability.

Adds test/features_spec.lua and includes it in the port suite.

Cherry-picked onto main after the Yggdrasil rename (PR #60). Does not include the rename commit.

Commits

  • d31304f feat: expose native extension features to Shen Batteries (boot.lua, test/features_spec.lua)
  • f1dbd98 test: include feature bridge spec in port suite (scripts/run-tests.lua)

Test plan

  • luajit test/features_spec.lua — 3 pass, 0 fail

@pyrex41
pyrex41 merged commit 4684b88 into main Aug 25, 2026
2 checks passed
@pyrex41
pyrex41 deleted the feat/batteries-features branch August 25, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant